﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentMarks
{
    class Program
    {
        static void Main(string[] args)
        {
            List<PersonalInfo> students = new List<PersonalInfo>();
            string choise;
            do
            {
                Console.Clear();
                PersonalInfo student = new PersonalInfo();
                student.Credentials();
                students.Add(student);
                Console.WriteLine("Желаете добавить еще студента? Д/Н");
                choise = Console.ReadLine();
            }
            while (choise == "Д" || choise == "д");
            Console.WriteLine("Список студентов с средней оценкой выше 67:");
            foreach (var student in students)
            if (student.AvareageMark()>67)
            {
                    student.ShowInfo();
                Console.WriteLine(student.AvareageMark());
            }
        }
    }
}
